home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / applied / create < prev    next >
Text File  |  2001-04-06  |  778b  |  25 lines

  1. SYNOPSIS
  2.         void create()
  3.  
  4. DESCRIPTION
  5.         In native mode, this function will be called only once on
  6.         creation of the object (this is when the object will be loaded
  7.         or cloned). Inside this function all major initialization can
  8.         be done. The current user and the previous object are
  9.         defined but the object has no environment.
  10.  
  11. EXAMPLE
  12.         object cloner;
  13.         void create() {
  14.            cloner=this_player();
  15.         }
  16.         
  17.         Initialize the global variable to hold the one who
  18.         created/cloned the object.
  19.  
  20.         For 3.2.1, the mudlib may be programmed to call other lfuns
  21.         than create() on an objects creation.
  22.         
  23. SEE ALSO
  24.         reset(A), init(A), __INIT(A), initialisation(LPC), hooks(C), native(C)
  25.